package org.jeecg.modules.tplus.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 *  收款单信息查询
 *
 * @author hzq
 */
@Data
public class UnitQueryRepDto {
    /**
     * 符合条件的订单数量
     */
    @Schema(description = "符合条件的收款单数量")
    @JsonProperty(value = "TotalCount")
    private Integer totalCount;

    /**
     * 总共包含多少页
     */
    @Schema(description = "总共包含多少页")
    @JsonProperty(value = "TotalPage")
    private Integer totalPage;

    /**
     * 当前页
     */
    @Schema(description = "当前页")
    @JsonProperty(value = "CurrentPage")
    private Integer currentPage;

    /**
     * 数据列
     */
    @Schema(description = "数据列")
    @JsonProperty(value = "Data")
    private List<UnitQueryData> unitQueryDatas;

    public static class UnitQueryData {

        /**
         * ID
         */
        @Schema(description = "ID")
        @JsonProperty(value = "ID")
        private String id;
        /**
         * 编码
         */
        @Schema(description = "编码")
        @JsonProperty(value = "Code")
        private String code;

        /**
         * 名称
         */
        @Schema(description = "名称")
        @JsonProperty(value = "Name")
        private String name;

        /**
         * 是否停用
         */
        @Schema(description = "是否停用")
        @JsonProperty(value = "Disabled")
        private Boolean disabled;
    }
}
